#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPaintEvent>
#include<QMouseEvent>
#include<QPoint>
#include <QPainter>
#include <QDebug>
#include<QVBoxLayout>
#include <QPen>
#include <QList>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void paintEvent(QPaintEvent *event);
    void mouseMoveEvent(QMouseEvent *e);
    void mousePressEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
private slots:
    void on_radioButton_clicked();

    void on_radioButton_2_clicked();

private:
    Ui::MainWindow *ui;
    QPoint start;
    QPoint end;
    QList<QLine> linelist;
    QList<QPoint> Pointlist;
    QList<QList<QPoint>> LinePointlist;
    int LineType;

};
#endif // MAINWINDOW_H
